package com.lizhi.yun.db.dao;/**
 * @program: spring-boot
 * @name UppRoleMenuDao
 * @description:
 * @author: lizhi
 * @create: 2020-04-11 18:31
 */

import com.lizhi.yun.db.pojo.UppRoleMenuPOJO;
import com.lizhi.mybatis.interceptor.PageBounds;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *@program: spring-boot
 *@name UppRoleMenuDao
 *@description:
 *@author: lizhi
 *@create: 2020-04-11 18:31
 */
@Mapper
public interface UppRoleMenuDao {

    public int insertRecord(UppRoleMenuPOJO record);//添加一条完整记录

    public int deleteById(@Param("roleId") String roleId, @Param("menuId") String menuId);//通过Id(主键)删除一条记录

    public int deleteByMenuId(@Param("menuId") String menuId);

    public int updateByIdSelective(UppRoleMenuPOJO record);//按Id(主键)修改指定列的值

    public int updateById(UppRoleMenuPOJO record);//按Id(主键)修改所有列的值

    public int insertRecordList(List<UppRoleMenuPOJO> list);

    public int deleteRecordList(List<UppRoleMenuPOJO> list);

    public UppRoleMenuPOJO selectById(@Param("roleId") String roleId, @Param("menuId") String menuId);//通过Id(主键)查询一条记录

    public List<UppRoleMenuPOJO> selectAll(UppRoleMenuPOJO record, PageBounds pageBounds);//根据条件查询

    public List<UppRoleMenuPOJO> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

    public List<UppRoleMenuPOJO> selectByRoleIds(List<String> roleIds);
}
